home *** CD-ROM | disk | FTP | other *** search
- Path: iclnet.org!usenet
- From: Olivier ABDOUN <adde@adde.fr>
- Newsgroups: comp.lang.c++
- Subject: Re: How to Create a Tabbed View MDI Child Window, just like the Database Window in MS Access? Help me please.
- Date: Fri, 19 Apr 1996 17:32:08 +0100
- Organization: A.D.D.E
- Message-ID: <3177C008.2E0E@adde.fr>
- References: <3175C1D6.4316@asu.edu>
- NNTP-Posting-Host: adde143.adde.fr
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- Frank Guohua Li wrote:
- >
- > Can anybody help me please. I need to design a MDI window that has a tabbed view in it.
- > Detailed descriptions are following:
- >
- > 1. It should be a MDI child window, not a Property Dialog.
- > 2. The MDI window should be resizable. And the Tabbed View inside the MDI window should
- > be sized according to the MDI child window.
- > 3. There are vertical and horizon scrollbars within the Tabbed View (not in the MDI window).
- > 4. Some good examples will be The "Database Window" in MS Access and the "Project Workspace
- > window" in Visual C++ 4.x.
- >
- > Any help is highly appreciated!
-
- When you inspect the MS Access tabbed view with Spy++, you can see that the window class is "SysTabControl32".
- So one solution is to take inspiration from the CTreeView (MFC 4.0) and to derive a new class from CCtrlView
- with "SysTabControl32" as window class name.
- Another solution is to add a CTabCtrl member to your view and look at the "Creating a Tab Control" article
- (Visual C++ 4.0 Book OnLine : SDKs\Win32 SDK\Win32\Overviews\Common Controls\Tab Controls\Using Tab Controls)
- to manage this member.
- I tried the two solutions, and even if the first is very elegant, the second appeared more flexible. The real
- problem, in fact, is to find an easy way to manage the display area of each tab (CTabCtrl::AdjustRect method),
- but I've no advise for this because I'm still looking for this way...
-
- Good Luck,
- Olivier.
-
- ///////////////////////////////////////////////////////
- // Olivier ABDOUN
- // --------------
- // A.D.D.E Logicels et Services de Cartographie
- // 17, rue Louise Michel
- // BP 29
- // 92301 LEVALLOIS-PERRET Cedex
- // FRANCE
- // Phone: 33 (1) 47 58 37 05
- // Fax: 33 (1) 47 58 76 46
- // email: adde@adde.fr
- // Web: http://www.adde.fr
- ///////////////////////////////////////////////////////
-